package com.wing.product.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.wing.mybatis.common.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import java.util.Date;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

/**
 * 过户订单
 */
@Schema(description="过户订单")
@Data
@EqualsAndHashCode(callSuper=true)
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "warehouse_transfer_order")
public class WarehouseTransferOrder extends BaseEntity<WarehouseTransferOrder> {
    @TableField(value = "transfer_code")
    @Schema(description="过户订单编号")
    private String transferCode;

    @TableField(value = "seller_customer_id")
    @Schema(description="出售方客户id")
    private Long sellerCustomerId;

    @TableField(value = "buyer_customer_id")
    @Schema(description="购买方客户id")
    private Long buyerCustomerId;

    @TableField(value = "transfer_status")
    @Schema(description="订单状态 0 待确认，1确认过户（管理员操作）")
    private Integer transferStatus;

    @TableField(value = "seller_confirm")
    @Schema(description="出售方确认")
    private Integer sellerConfirm;

    @TableField(value = "buyer_confirm")
    @Schema(description="购买方确认")
    private Integer buyerConfirm;

    @TableField(value = "seller_confirm_time")
    @Schema(description="出售方确认时间")
    private Date sellerConfirmTime;

    @TableField(value = "buyer_confirm_time")
    @Schema(description="购买方确认时间")
    private Date buyerConfirmTime;

    @TableField(value = "transfer_time")
    @Schema(description="过户时间")
    private Date transferTime;

    @TableField(value = "`source`")
    @Schema(description="数据来源")
    private Integer source;


    @TableField(value = "seller_contact_id")
    private Long sellerContactId;
    @TableField(value = "buyer_contact_id")
    private Long  buyerContactId;
    @TableField(value = "seller_phone")
    private String sellerPhone;
    @TableField(value = "buyer_phone")
    private String buyerPhone;

    @TableField(value = "handover_Time")
    @Schema(description="交割日期")
    private Date handoverTime;

}